
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>对象的构建 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Landen">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-image-captions/image-captions.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="this.html" />
    
    
    <link rel="prev" href="十大排序算法.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../01html/html简介.html">
            
                <a href="../01html/html简介.html">
            
                    
                    HTML
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../01html/01html.html">
            
                <a href="../01html/01html.html">
            
                    
                    a链接、图片
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../01html/02html.html">
            
                <a href="../01html/02html.html">
            
                    
                    列表、表格、表单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../01html/h5新增.html">
            
                <a href="../01html/h5新增.html">
            
                    
                    h5新增
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../02css/css简介.html">
            
                <a href="../02css/css简介.html">
            
                    
                    CSS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../02css/居中、省略、清浮.html">
            
                <a href="../02css/居中、省略、清浮.html">
            
                    
                    居中、省略、清浮
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../02css/浮动和定位.html">
            
                <a href="../02css/浮动和定位.html">
            
                    
                    浮动和定位
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../02css/变换、过渡、动画.html">
            
                <a href="../02css/变换、过渡、动画.html">
            
                    
                    变换、过渡、动画
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../02css/sass和rem.html">
            
                <a href="../02css/sass和rem.html">
            
                    
                    sass和rem
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../02css/flex、media、栅格化.html">
            
                <a href="../02css/flex、media、栅格化.html">
            
                    
                    flex、media、栅格化
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="js简介.html">
            
                <a href="js简介.html">
            
                    
                    JavaScript
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="数据类型.html">
            
                <a href="数据类型.html">
            
                    
                    数据类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="字符串.html">
            
                <a href="字符串.html">
            
                    
                    字符串
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="数组.html">
            
                <a href="数组.html">
            
                    
                    数组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="回流和重绘.html">
            
                <a href="回流和重绘.html">
            
                    
                    回流和重绘
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="浏览器的渲染过程.html">
            
                <a href="浏览器的渲染过程.html">
            
                    
                    浏览器的渲染过程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="十大排序算法.html">
            
                <a href="十大排序算法.html">
            
                    
                    十大排序算法
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.4.7" data-path="对象的构建.html">
            
                <a href="对象的构建.html">
            
                    
                    对象的构建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.8" data-path="this.html">
            
                <a href="this.html">
            
                    
                    this
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9" data-path="bind&call&apply.html">
            
                <a href="bind&call&apply.html">
            
                    
                    bind&call&apply
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.10" data-path="函数.html">
            
                <a href="函数.html">
            
                    
                    函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11" data-path="变量提升.html">
            
                <a href="变量提升.html">
            
                    
                    变量提升
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.12" data-path="作用域.html">
            
                <a href="作用域.html">
            
                    
                    作用域
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.13" data-path="对象.html">
            
                <a href="对象.html">
            
                    
                    对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.14" data-path="存储.html">
            
                <a href="存储.html">
            
                    
                    存储
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.15" data-path="事件.html">
            
                <a href="事件.html">
            
                    
                    事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.16" data-path="图片预览.html">
            
                <a href="图片预览.html">
            
                    
                    图片预览
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.17" data-path="防抖节流.html">
            
                <a href="防抖节流.html">
            
                    
                    防抖节流
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.18" data-path="同步异步.html">
            
                <a href="同步异步.html">
            
                    
                    同步异步
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.19" data-path="babel入门.html">
            
                <a href="babel入门.html">
            
                    
                    babel入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.20" data-path="nvm.html">
            
                <a href="nvm.html">
            
                    
                    nvm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.21" data-path="ES6.html">
            
                <a href="ES6.html">
            
                    
                    ES6
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.22" data-path="ES6-ES11.html">
            
                <a href="ES6-ES11.html">
            
                    
                    ES6-ES11
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >对象的构建</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x5B57;&#x9762;&#x91CF;">&#x5B57;&#x9762;&#x91CF;</h2>
<p>&#x4EE5;&#x76F4;&#x63A5;&#x5B9A;&#x4E49;&#x7684;&#x5F62;&#x5F0F;&#x6765;&#x8868;&#x793A;&#x67D0;&#x4E00;&#x6570;&#x636E;&#x683C;&#x5F0F;&#x3002;&#x7F3A;&#x70B9;&#xFF1A;&#x4E0D;&#x80FD;&#x5FEB;&#x901F;&#x521B;&#x5EFA;&#x591A;&#x4E2A;&#x5BF9;&#x8C61;</p>
<h2 id="&#x5DE5;&#x5382;&#x6A21;&#x5F0F;">&#x5DE5;&#x5382;&#x6A21;&#x5F0F;</h2>
<pre><code class="lang-js"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">std</span>(<span class="hljs-params">age, sex, phone</span>) </span>{
    <span class="hljs-comment">// &#x5DE5;&#x5382;&#x539F;&#x6750;&#x6599;&#xFF0C;&#x7A7A;&#x5BF9;&#x8C61;</span>
    <span class="hljs-keyword">let</span> obj = {};
    <span class="hljs-comment">// &#x52A0;&#x5DE5;&#x539F;&#x6750;&#x6599;&#xFF0C;&#x4E3A;&#x5BF9;&#x8C61;&#x6DFB;&#x52A0;&#x5C5E;&#x6027;/&#x65B9;&#x6CD5;</span>
    obj.age = age;
    obj.sex = sex;
    obj.phone = phone;
    <span class="hljs-comment">// &#x8F93;&#x51FA;&#x4EA7;&#x54C1;&#xFF0C;&#x5C06;&#x52A0;&#x5DE5;&#x597D;&#x7684;&#x5BF9;&#x8C61; return &#x51FA;&#x53BB;</span>
    <span class="hljs-keyword">return</span> obj;
}
</code></pre>
<ul>
<li>&#x4F18;&#x70B9;&#xFF1A;&#x51CF;&#x5C11;&#x4EE3;&#x7801;&#x91CF;&#xFF0C;&#x5C06;&#x5BF9;&#x8C61;&#x5B9A;&#x4E49;&#x7684;&#x8FC7;&#x7A0B;&#x5C01;&#x88C5;&#x5728;&#x5DE5;&#x5382;&#x51FD;&#x6570;&#x5185;&#xFF1B;</li>
<li>&#x7F3A;&#x70B9;&#xFF1A;&#x4F7F;&#x7528;&#x5DE5;&#x5382;&#x6A21;&#x5F0F;&#x65F6;&#xFF0C;&#x65E0;&#x6CD5;&#x5F97;&#x77E5;&#x5BF9;&#x8C61;&#x7684;&#x6765;&#x6E90;&#xFF1B;&#x76F8;&#x6BD4;&#x6784;&#x9020;&#x51FD;&#x6570;&#xFF0C;&#x5DE5;&#x5382;&#x6A21;&#x5F0F;&#x7684;&#x8FC7;&#x7A0B;&#x4E0D;&#x591F;&#x7B80;&#x6D01;</li>
</ul>
<h2 id="&#x6784;&#x9020;&#x6A21;&#x5F0F;">&#x6784;&#x9020;&#x6A21;&#x5F0F;</h2>
<pre><code class="lang-js"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">Cat</span>(<span class="hljs-params">color</span>)</span>{
    <span class="hljs-comment">// &#x4F7F;&#x7528; new &#x5173;&#x952E;&#x5B57;&#x8C03;&#x7528; &#x51FD;&#x6570; &#x65F6;&#xFF0C;&#x51FD;&#x6570;&#x5185;&#x90E8;&#x7684; this &#x6307;&#x5411;&#x4E8E;&#x5F53;&#x524D; &#x6B63;&#x5728;&#x88AB; &#x521B;&#x5EFA;&#x7684;&#x5BF9;&#x8C61;(&#x5B9E;&#x4F8B;)&#xFF1B;</span>
    <span class="hljs-comment">// &#x6240;&#x4EE5;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x901A;&#x8FC7; this &#x6765;&#x5F80;&#x5B9E;&#x4F8B;&#x8EAB;&#x4E0A;&#x6DFB;&#x52A0;&#x5C5E;&#x6027;&#x548C;&#x65B9;&#x6CD5;</span>
    <span class="hljs-built_in">console</span>.log(<span class="hljs-keyword">this</span>);
    <span class="hljs-keyword">this</span>.color = color;

    <span class="hljs-keyword">this</span>.sayMiao = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>)</span>{
        <span class="hljs-built_in">console</span>.log(<span class="hljs-string">&quot;&#x55B5;&#x55B5;&#x55B5;&quot;</span>);
    }
}
</code></pre>
<ul>
<li>&#x5B9A;&#x4E49;&#x6784;&#x9020;&#x51FD;&#x6570;&#x65F6;&#xFF0C;&#x9996;&#x5B57;&#x6BCD;&#x4E3A;&#x5927;&#x5199;</li>
<li>&#x901A;&#x8FC7; constructor &#x67E5;&#x770B;&#x5F53;&#x524D;&#x5B9E;&#x4F8B;&#x5BF9;&#x8C61;&#x6784;&#x9020;&#x51FD;&#x6570;</li>
<li>&#x6839;&#x636E;&#x4F5C;&#x7528;&#x57DF;&#x89C4;&#x5219;&#xFF0C;&#x51FD;&#x6570;&#x88AB;&#x8C03;&#x7528;&#x65F6;&#xFF0C;&#x4F1A;&#x91CD;&#x65B0;&#x521B;&#x5EFA;&#x4F5C;&#x7528;&#x57DF;&#xFF0C;&#x6240;&#x4EE5;&#xFF0C;&#x51FD;&#x6570;&#x5185;&#x90E8;&#x6240;&#x6709;&#x7684;&#x53D8;&#x91CF;&#x548C;&#x51FD;&#x6570;&#x90FD;&#x662F;&#x91CD;&#x65B0;&#x521B;&#x5EFA;&#x51FA;&#x6765;&#xFF0C;&#x4E92;&#x4E0D;&#x5E72;&#x6270;,&#x591A;&#x6B21;&#x521B;&#x5EFA;&#xFF0C;&#x4F1A;&#x9020;&#x6210;&#x5185;&#x5B58;&#x7684;&#x6D6A;&#x8D39;</li>
<li>&#x7F3A;&#x70B9;&#xFF1A;&#x7EAF;&#x6784;&#x9020;&#x51FD;&#x6570; &#x65E0;&#x6CD5;&#x505A;&#x5230;&#x5171;&#x4EAB;&#x5C5E;&#x6027;/&#x65B9;&#x6CD5;</li>
</ul>
<h2 id="&#x6784;&#x9020;&#x51FD;&#x6570;--vs--&#x5DE5;&#x5382;&#x6A21;&#x5F0F;">&#x6784;&#x9020;&#x51FD;&#x6570;  vs  &#x5DE5;&#x5382;&#x6A21;&#x5F0F;</h2>
<ol>
<li>&#x6784;&#x9020;&#x51FD;&#x6570;&#x4E0D;&#x9700;&#x8981;&#x663E;&#x793A;&#x5B9A;&#x4E49;&#x4E00;&#x4E2A;&#x7A7A;&#x5BF9;&#x8C61;</li>
<li>&#x6784;&#x9020;&#x51FD;&#x6570;&#x4E0D;&#x9700;&#x8981;&#x663E;&#x793A;&#x5C06;&#x521B;&#x5EFA;&#x7684;&#x5B9E;&#x4F8B;&#x5BF9;&#x8C61; return &#x51FA;&#x53BB;</li>
<li>&#x5B9E;&#x4F8B;&#x7684;&#x5C5E;&#x6027; &#x548C; &#x65B9;&#x6CD5; &#x901A;&#x8FC7; this &#x6DFB;&#x52A0;&#x5373;&#x53EF;</li>
<li>&#x4F7F;&#x7528;&#x6784;&#x9020;&#x51FD;&#x6570;&#x521B;&#x5EFA;&#x5BF9;&#x8C61;&#x65F6;&#xFF0C;&#x53EF;&#x4EE5;&#x5F97;&#x77E5;&#x5BF9;&#x8C61;&#x7684;&#x6765;&#x6E90;(&#x6784;&#x9020;&#x8005;)&#xFF1B;&#x901A;&#x8FC7; cat1.constructor &#x8BBF;&#x95EE;&#x6784;&#x9020;&#x5668;&#x51FD;&#x6570;</li>
</ol>
<h2 id="&#x539F;&#x578B;&#x6A21;&#x5F0F;">&#x539F;&#x578B;&#x6A21;&#x5F0F;</h2>
<pre><code class="lang-js"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">Cat</span>(<span class="hljs-params"></span>)</span>{}
<span class="hljs-comment">// prototype:&#x51FD;&#x6570;&#x7684;&#x539F;&#x578B;&#x5BF9;&#x8C61;&#xFF0C;&#x7528;&#x4E8E;&#x4E3A; &#x5B9E;&#x4F8B; &#x6DFB;&#x52A0;&#x5171;&#x4EAB;&#x7684;&#x5C5E;&#x6027;&#x548C;&#x65B9;&#x6CD5;</span>
<span class="hljs-built_in">console</span>.log(Cat.prototype);
<span class="hljs-comment">// &#x5728;Cat&#x6784;&#x9020;&#x51FD;&#x6570;&#x7684;&#x539F;&#x578B;&#x5BF9;&#x8C61;&#x4E0A;&#xFF0C;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;sayMiao&#x65B9;&#x6CD5;&#xFF1B;&#x8BE5;&#x65B9;&#x6CD5;&#x4F1A;&#x88AB;&#x5171;&#x4EAB;</span>
Cat.prototype.leg = <span class="hljs-number">4</span>;
Cat.prototype.sayMiao = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>)</span>{
    <span class="hljs-built_in">console</span>.log(<span class="hljs-string">&quot;&#x55B5;&#x55B5;&#x55B5;&quot;</span>);
}
</code></pre>
<ul>
<li>&#x901A;&#x8FC7;&#x5F80;&#x6784;&#x9020;&#x51FD;&#x6570;&#x7684; prototype &#x6DFB;&#x52A0;&#x5C5E;&#x6027;/&#x65B9;&#x6CD5;&#xFF0C;&#x8FBE;&#x5230;&#x5171;&#x4EAB;&#x5C5E;&#x6027;/&#x65B9;&#x6CD5;&#x7684;&#x76EE;&#x7684;</li>
<li>prototype:&#x6BCF;&#x4E00;&#x4E2A;&#x51FD;&#x6570;&#x90FD;&#x6709; prototype &#x539F;&#x578B;&#x5BF9;&#x8C61;&#xFF0C;&#x7528;&#x4E8E;&#x4E3A;&#x51FD;&#x6570;&#x5B9E;&#x4F8B;&#x6DFB;&#x52A0;&#x5171;&#x4EAB;&#x7684;&#x5C5E;&#x6027;/&#x65B9;&#x6CD5;</li>
<li>&#x901A;&#x8FC7;&#x539F;&#x578B;&#x94FE;&#xFF0C;&#x53EF;&#x4EE5;&#x5F80;&#x4E0A;&#x7EA7;(Cat.prototype)&#x67E5;&#x5230;sayMiao&#x51FD;&#x6570;</li>
</ul>
<h2 id="&#x6DF7;&#x5408;&#x6A21;&#x5F0F;">&#x6DF7;&#x5408;&#x6A21;&#x5F0F;</h2>
<ul>
<li>&#x7EFC;&#x5408; &#x6784;&#x9020;&#x6A21;&#x5F0F; &#x548C; &#x539F;&#x578B;&#x6A21;&#x5F0F; &#x7684;&#x4F18;&#x70B9;,&#x8BA9;&#x521B;&#x5EFA;&#x51FA;&#x6765;&#x7684;&#x5B9E;&#x4F8B;&#xFF0C;&#x65E2;&#x6709;&#x81EA;&#x5DF1;&#x7279;&#x6709;&#x7684;&#x5C5E;&#x6027;/&#x65B9;&#x6CD5;&#xFF0C;&#x53C8;&#x6709;&#x5171;&#x4EAB;&#x7684;&#x5C5E;&#x6027;/&#x65B9;&#x6CD5;</li>
</ul>
<h2 id="&#x539F;&#x578B;&#x94FE;">&#x539F;&#x578B;&#x94FE;</h2>
<ul>
<li>&#x4F7F;&#x7528;&#x5B57;&#x9762;&#x91CF;&#x521B;&#x5EFA;&#x6570;&#x636E;&#x65F6;&#xFF0C;js&#x5F15;&#x64CE;&#x4F1A;&#x9ED8;&#x8BA4;&#x4F7F;&#x7528;new&#x751F;&#x6210;&#x5BF9;&#x5E94;&#x7C7B;&#x578B;&#x7684;&#x6570;&#x636E;</li>
<li>arr &#x7684;&#x6784;&#x9020;&#x51FD;&#x6570;(constructor)&#x5176;&#x5B9E;&#x5C31;&#x662F;Array&#x6784;&#x9020;&#x51FD;&#x6570;</li>
<li>arr.constructor.prototype == Array.prototype;</li>
<li>&#x539F;&#x578B;&#x94FE;&#x4E3A;&#x5C5E;&#x6027;/&#x65B9;&#x6CD5;&#x7684;&#x8BBF;&#x95EE;&#x63D0;&#x4F9B;&#x4E86;&#x94FE;&#x5F0F;&#x8BBF;&#x95EE;&#xFF0C;&#x4F7F;&#x5F97;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x5728;&#x7236;&#x7EA7;&#x539F;&#x578B;&#x5BF9;&#x8C61;&#x4E0A;&#x6DFB;&#x52A0;&#x5C5E;&#x6027;/&#x65B9;&#x6CD5;&#xFF0C;&#x6765;&#x8BA9;&#x5B9E;&#x4F8B;&#x5171;&#x4EAB;&#x8FD9;&#x4E9B;&#x5C5E;&#x6027;/&#x65B9;&#x6CD5;&#xFF1B;</li>
<li>&#x539F;&#x578B;&#x94FE;&#x7684;&#x8BBF;&#x95EE;&#x89C4;&#x5219;&#xFF1A;&#x5C31;&#x8FD1;&#x539F;&#x5219;&#xFF1B;&#x5C5E;&#x6027;&#x7684;&#x67E5;&#x627E;&#x4F1A;&#x5148;&#x5728;&#x5F53;&#x524D;&#x5BF9;&#x8C61;&#x81EA;&#x8EAB;&#x67E5;&#x627E;&#xFF0C;&#x5982;&#x679C;&#x627E;&#x4E0D;&#x5230;&#xFF0C;&#x5219;&#x5F80;&#x5F53;&#x524D;&#x5BF9;&#x8C61;&#x6784;&#x9020;&#x51FD;&#x6570;&#x7684;&#x539F;&#x578B;&#x5BF9;&#x8C61;&#x67E5;&#x627E;&#xFF1B;&#x5982;&#x679C;&#x8FD8;&#x6CA1;&#x6709;&#xFF0C;&#x5C31;&#x7EE7;&#x7EED;&#x5F80;&#x4E0A;&#x4E00;&#x7EA7;&#x539F;&#x578B;&#x5BF9;&#x8C61;&#x67E5;&#x627E;&#x76F4;&#x81F3;null;</li>
<li>console.log(arr.__proto__ == arr.constructor.prototype); // true</li>
</ul>

                                
                                </section>
                            
                        </div>
                    </div>
                
            </div>

            
                
                <a href="十大排序算法.html" class="navigation navigation-prev " aria-label="Previous page: 十大排序算法">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="this.html" class="navigation navigation-next " aria-label="Next page: this">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"对象的构建","level":"1.4.7","depth":2,"next":{"title":"this","level":"1.4.8","depth":2,"path":"md/03js/this.md","ref":"./md/03js/this.md","articles":[]},"previous":{"title":"十大排序算法","level":"1.4.6","depth":2,"path":"md/03js/十大排序算法.md","ref":"./md/03js/十大排序算法.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-search","-sharing","toggle-chapters","image-captions","-anchor-navigation","-anchor-navigation-ex"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"image-captions":{"attributes":{"style":"left: 50%;position: relative;transform: translateX(-50%);"},"caption":"图 _PAGE_LEVEL_._PAGE_IMAGE_NUMBER_ - _CAPTION_","align":"center","variable_name":"_pictures"},"fontsettings":{"theme":"night","family":"sans","size":2},"toggle-chapters":{},"highlight":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"Landen","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"_pictures":[]},"gitbook":"3.x.x"},"file":{"path":"md/03js/对象的构建.md","mtime":"2020-07-27T03:02:51.587Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-08-17T10:41:18.504Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

